<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1 th:text="${msg}"></h1>
<a href="/login">登录</a>
<a href="/logout">注销</a>
<div shiro:hasPermission="user:add">
    <a href="/user/add">添加</a>
</div>
<br>
<div shiro:hasPermission="user:update">
    <a th:href="@{/user/update}">更新</a>
</div>

</body>
</html>